Optimal. Leaf size=71 \[ \frac{2 (a C+b B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}-\frac{2 (a B-b C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a B \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.210657, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {3029, 2968, 3021, 2748, 2641, 2639} \[ \frac{2 (a C+b B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}-\frac{2 (a B-b C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a B \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3029
Rule 2968
Rule 3021
Rule 2748
Rule 2641
Rule 2639
Rubi steps
\begin{align*} \int \frac{(a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac{5}{2}}(c+d x)} \, dx &=\int \frac{(a+b \cos (c+d x)) (B+C \cos (c+d x))}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\int \frac{a B+(b B+a C) \cos (c+d x)+b C \cos ^2(c+d x)}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 a B \sin (c+d x)}{d \sqrt{\cos (c+d x)}}+2 \int \frac{\frac{1}{2} (b B+a C)-\frac{1}{2} (a B-b C) \cos (c+d x)}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 a B \sin (c+d x)}{d \sqrt{\cos (c+d x)}}+(b B+a C) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx+(-a B+b C) \int \sqrt{\cos (c+d x)} \, dx\\ &=-\frac{2 (a B-b C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 (b B+a C) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a B \sin (c+d x)}{d \sqrt{\cos (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.346534, size = 64, normalized size = 0.9 \[ \frac{2 \left ((a C+b B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )+(b C-a B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )+\frac{a B \sin (c+d x)}{\sqrt{\cos (c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.575, size = 244, normalized size = 3.4 \begin{align*} -2\,{\frac{bB\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) +B\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) a-2\,Ba\cos \left ( 1/2\,dx+c/2 \right ) \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+aC\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) -C\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) b}{\sin \left ( 1/2\,dx+c/2 \right ) \sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right )\right )}{\left (b \cos \left (d x + c\right ) + a\right )}}{\cos \left (d x + c\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{C b \cos \left (d x + c\right )^{2} + B a +{\left (C a + B b\right )} \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{\frac{3}{2}}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right )\right )}{\left (b \cos \left (d x + c\right ) + a\right )}}{\cos \left (d x + c\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]